-
Home
-
Advanced Dynamic Pricing for WooCommerce
-
4.1.1
-
Code
-
Classes
- SingleItemRuleProcessor
Total Complexity |
200 |
Dependencies |
22 |
Dependents |
1 |
Total lines |
1,163 |
Lines of code |
711 |
Logical lines of code |
488 |
Comment lines |
204 |
Methods |
23 |
Properties |
16 |
Methods 23
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
applyRangeDiscounts() |
D |
12 |
90 |
300 |
getItemsToDiscount() |
C |
30 |
28 |
121 |
applyProductAdjustment() |
B |
38 |
21 |
67 |
isProductMatched() |
A |
47 |
11 |
36 |
sortItems() |
A |
54 |
8 |
22 |
isCategoryMatched() |
A |
55 |
8 |
20 |
process() |
S |
47 |
6 |
40 |
__construct() |
S |
55 |
3 |
18 |
isRuleMatchedCart() |
S |
64 |
3 |
11 |
addFreeProducts() |
S |
63 |
3 |
10 |
addAutoAddProducts() |
S |
63 |
3 |
10 |
applyToCart() |
S |
60 |
2 |
14 |
applyChangesToCart() |
S |
72 |
2 |
6 |
addGifts() |
S |
72 |
2 |
6 |
addAutoAdds() |
S |
72 |
2 |
6 |
matchConditions() |
S |
80 |
1 |
3 |
applyCartAdjustments() |
S |
80 |
1 |
3 |
withContext() |
S |
81 |
1 |
3 |
checkConditions() |
S |
80 |
1 |
3 |
checkLimits() |
S |
80 |
1 |
3 |
getLastExecTime() |
S |
81 |
1 |
3 |
getStatus() |
S |
82 |
1 |
3 |
getRule() |
S |
82 |
1 |
3 |